package com.hy.mydesktop.client.mvc.core.event.manager;

import java_cup.internal_error;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.hy.mydesktop.client.mvc.base.BaseController;
import com.hy.mydesktop.shared.util.log.MyLoggerUtil;

public class ControllerForwardUtil {

	public static void printControllerDebugForEventForward(BaseController baseController,AppEvent appEvent ) {
 		 int lastIndexOfPoint=baseController.getPresenter().getClass().getName().lastIndexOf(".");

		 MyLoggerUtil.printInfo(ControllerForwardUtil.class, baseController.getClass().getName()+"【id=" +baseController.getId()+
			 		"】该控制器， 转发" +
			 		appEvent.getType().toString()+" 事件，到" +
			 		baseController.getPresenter().getClass().getName().substring(lastIndexOfPoint)+
			 		
			 		"");
		
	}

}
